package com.spring.bean.person;

import java.sql.Timestamp;
import com.spring.annotation.entity.*;
import com.spring.bean.Entity;

@Table(name="person_basic")
public class PersonBasic extends Entity {

	private Integer id;  // 
	private String email;  // 
	private String name;  // 
	private String password;  // 
	private String salt;  // 
	private String photo;  // 
	private Integer sex;  // 
	private String motto;  // 
	private Integer province;  // 
	private Integer city;  // 
	private Integer town;  // 
	private Integer attented_num;  // 
	private Integer attent_num;  // 
	private Integer credits;  // 
	private Timestamp sign_time;  // 
	private Integer is_able;  // 
	private String mark_ad;  // 

	public Integer getId(){
		return id;
	}
	public void setId(Integer id){
		this.id = id;
	}

	public String getEmail(){
		return email;
	}
	public void setEmail(String email){
		this.email = email;
	}

	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name = name;
	}

	public String getPassword(){
		return password;
	}
	public void setPassword(String password){
		this.password = password;
	}

	public String getSalt(){
		return salt;
	}
	public void setSalt(String salt){
		this.salt = salt;
	}

	public String getPhoto(){
		return photo;
	}
	public void setPhoto(String photo){
		this.photo = photo;
	}

	public Integer getSex(){
		return sex;
	}
	public void setSex(Integer sex){
		this.sex = sex;
	}

	public String getMotto(){
		return motto;
	}
	public void setMotto(String motto){
		this.motto = motto;
	}

	public Integer getProvince(){
		return province;
	}
	public void setProvince(Integer province){
		this.province = province;
	}

	public Integer getCity(){
		return city;
	}
	public void setCity(Integer city){
		this.city = city;
	}

	public Integer getTown(){
		return town;
	}
	public void setTown(Integer town){
		this.town = town;
	}

	public Integer getAttented_num(){
		return attented_num;
	}
	public void setAttented_num(Integer attented_num){
		this.attented_num = attented_num;
	}

	public Integer getAttent_num(){
		return attent_num;
	}
	public void setAttent_num(Integer attent_num){
		this.attent_num = attent_num;
	}

	public Integer getCredits(){
		return credits;
	}
	public void setCredits(Integer credits){
		this.credits = credits;
	}

	public Timestamp getSign_time(){
		return sign_time;
	}
	public void setSign_time(Timestamp sign_time){
		this.sign_time = sign_time;
	}

	public Integer getIs_able(){
		return is_able;
	}
	public void setIs_able(Integer is_able){
		this.is_able = is_able;
	}

	public String getMark_ad(){
		return mark_ad;
	}
	public void setMark_ad(String mark_ad){
		this.mark_ad = mark_ad;
	}


	@Override
	public String toString(){
		return "PersonBasic ["+
			"id="+id+", email="+email+", "+
			"name="+name+", password="+password+", "+
			"salt="+salt+", photo="+photo+", "+
			"sex="+sex+", motto="+motto+", "+
			"province="+province+", city="+city+", "+
			"town="+town+", attented_num="+attented_num+", "+
			"attent_num="+attent_num+", credits="+credits+", "+
			"sign_time="+sign_time+", is_able="+is_able+", "+
			"mark_ad="+mark_ad+", " + 
			"toString()="+super.toString() +"]";
	}
}